import request from '@/utils/request'

// 查询库存明细列表
export function listPriceStore(query) {
  return request({
    url: '/supplier/priceStore/list',
    method: 'get',
    params: query
  })
}

// 查询库存明细详细
export function getPriceStore(id) {
  return request({
    url: '/supplier/priceStore/' + id,
    method: 'get'
  })
}

// 新增库存明细
export function addPriceStore(data) {
  return request({
    url: '/supplier/priceStore',
    method: 'post',
    data: data
  })
}

// 修改库存明细
export function updatePriceStore(data) {
  return request({
    url: '/supplier/priceStore',
    method: 'put',
    data: data
  })
}

// 删除库存明细
export function delPriceStore(id) {
  return request({
    url: '/supplier/priceStore/' + id,
    method: 'delete'
  })
}

// 导出库存明细
export function exportPriceStore(query) {
  return request({
    url: '/supplier/priceStore/export',
    method: 'get',
    params: query
  })
}